From 1dcd8ad7e1691bb712116dc5b6bf4b70b6444717 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sat, 31 Dec 2022 15:43:00 +0000 Subject: [PATCH] Use --memopt option when calling TOPCOM Bug: https://github.com/Macaulay2/M2/issues/1707 Bug: https://github.com/Macaulay2/M2/issues/2712 Last-Update: 2022-12-15 Saves memory using caching to avoid example/test failures. Gbp-Pq: Name topcom-memopt.patch --- M2/Macaulay2/packages/Topcom.m2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/M2/Macaulay2/packages/Topcom.m2 b/M2/Macaulay2/packages/Topcom.m2 index c8075d0..81faaf7 100644 --- a/M2/Macaulay2/packages/Topcom.m2 +++ b/M2/Macaulay2/packages/Topcom.m2 @@ -317,7 +317,7 @@ topcomIsTriangulation(Matrix, List) := Boolean => opts -> (Vin, T) -> ( << "Index sets do not correspond to full-dimensional simplices" << endl; return false; ); - (outfile, errfile) := callTopcom("points2nflips --checktriang -v", {topcomPoints(V, Homogenize=>false), [], T }); + (outfile, errfile) := callTopcom("points2nflips --checktriang --memopt -v", {topcomPoints(V, Homogenize=>false), [], T }); not match("not valid", get errfile) ) -- 2.30.2